home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / send.cfm < prev    next >
Encoding:
ColdFusion Markup Language  |  2002-01-23  |  1.5 KB  |  56 lines

  1. td>
  2.                 </tr>
  3.                 <tr>
  4.                     <td>Email</td>
  5.                     <td><cfinput type="text" 
  6.                             ditemNemail" 
  7.                             value="#TheEmployee.Email#"></td>
  8.                 </tr>
  9.                 <tr>
  10.                     <td>Commpage</td>
  11.                     <td>
  12.                         <textarea cols="30" rowsi3" 
  13.                             ditemNCommpage" wrap="virtual">    </p>
  14.     
  15.     TheEmployee.Personala</cfoutput></textarea>
  16.                     </td>
  17.                 </tr>
  18.                 </table>
  19.                 <input type="submit" value="Update Employeetename="submitted"> 
  20.                 <input type="reset" value="Reset Form"> <input type="button" value="Cancel" onu
  21.  
  22. ="javascript:document.location='index.cfm';">
  23.                 </cfform> 
  24.  
  25.                 <hr>
  26.  
  27.             <cfelse>
  28.         SermS    <cfquery name="UpdateEmployeetes.tempF!--- CFM*
  29. fre. If it becrmS    update     -blEmployeenecrmS    set     FirstName 
  30.  am -rnVus to value="#form.FirstName#"re mo recordCount>
  31.     <cfl, 
  32.                         LastName 
  33.  am -rnVus to value="#form.LastName#"re mo recordCount>
  34.     <cfl, 
  35.                         Email 
  36.  am -rnVus to value="#form.Email#"re mo recordCount>
  37.     <cfl, 
  38.                         Phone 
  39.  am -rnVus to value="#form.Phone#"re mo recordCount>
  40.     <cfl,ermS            Personal 
  41.  am -rnVus to value="#form.Commpage#"re mo recordCount>LONGVAR
  42.     <cflermS    DFK
  43.     Employee
  44.  
  45.     "ne foEmployeed#' ch                </B/cfif>
  46. rmermS    <!--- By cflocating away, we t N/ent *ucDis 1.s ourreload#'
  47. y cupage and rees.drng *ucDis 1.,/p>e                 ame#<lmsg = URLEncodedFormat("<font color=""greenpe=#FirstName# #LastName# has been update*!</font>")>
  48.                  amlocation url="index.cfm?msg=#msgt becrmS
  49.             </cfif>
  50.     mS
  51.         </cfif>
  52.     m
  53.     </cfcase>
  54.     
  55.     <cfcase value="Delete">
  56.